package cn.kpi.service.usualassessment;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.kpi.entity.usualassessment.UserUATHpDetailEntity;
import cn.kpi.entity.usualassessment.UserUATLdDetailEntity;
import cn.kpi.entity.usualassessment.UserUATPjSummaryEntity;

public interface IUserUATPjService {
//	public int InsertUserUATPj(UserUATPjSummaryEntity entity,Long userid,Long templateid,Map<Long,Integer> map)throws Exception;
//	public int UpdateUserUATPj(UserUATPjSummaryEntity entity,Long userid,Long templateid,Map<Long,Integer> map)throws Exception;
	public int InsertUserUATPj(UserUATPjSummaryEntity entity,Long userid,Long templateid,Map<Long,Float> map,int audioid,String audioname)throws Exception;
	public int UpdateUserUATPj(UserUATPjSummaryEntity entity,Long userid,Long templateid,Map<Long,Float> map,int audioid,String audioname)throws Exception;
	
	public List<UserUATHpDetailEntity> GetUserUATHpDetailList(Long usasspjid,Long userid)throws Exception;
	public List<UserUATHpDetailEntity> GetUserUATHpDetailListRowSpan(Long usasspjid)throws Exception;
	public List<UserUATLdDetailEntity> GetUserUATLdDetailList(Long usasspjid,Long userid)throws Exception;
	public List<UserUATLdDetailEntity> GetUserUATLdDetailListRowSpan(Long usasspjid)throws Exception;
	
	public UserUATPjSummaryEntity GetUserUATPjSummary(Long userid,Long templateid,int year,int quarter,int pjtype)throws Exception;
	
	public List<UserUATPjSummaryEntity> GetUserUATPjSummaryList(int pjtype,String where)throws Exception;
	public int GetUserUATPjSummaryListCount(int pjtype,String where)throws Exception;
	public int DeleteUATHp(Long usasspjid,Long userid)throws Exception;
	public int DeleteUATLD(Long usasspjid,Long userid)throws Exception;
	public UserUATPjSummaryEntity GetUserUATPjSummaryForMzpd(Long userid,int year,int quarter,int pjtype)throws Exception;
	
	public List<UserUATPjSummaryEntity> GetUserPjListProcess(String where,int year,int quarter,int pjtype,int beginrow,int endrow)throws Exception;
	public List<UserUATPjSummaryEntity> GetOldUserPjListProcess(String where,int year,int quarter,int pjtype,int beginrow,int endrow)throws Exception;
	public int GetUserPjListProcessCount(String where)throws Exception;
	public int GetOldUserPjListProcessCount(String where)throws Exception;
	
	
	
	public List<Map> GetPjOrgSumList(String where,int year,int quarter)throws Exception;
	public List<Map> GetPjOrgSumListByStatustype(String where,int year,int quarter,String pjtype)throws Exception;
	
	public UserUATPjSummaryEntity GetUserUATPjSummaryById(Long usasspjid)throws Exception;
	
	public int UpdateUATHpStatus(Long usasspjid,Long userid,int status,int year,int quarter)throws Exception;
	public int UpdateUATLdStatus(Long usasspjid,Long userid,int status,int year,int quarter)throws Exception;
	
	
	
	 public int UpdateUATHpStatusBmNew(Long orgid,int status,int year,int quarter,Long orgstatustjid,String statustype)throws Exception;
	 public int GetOrgStatusCount(Long orgid,int year,int quarter,String statustype)throws Exception;
	 public int UpdateUATLdStatusBmNew(Long orgid,int status,int year,int quarter,Long orgstatustjid,String statustype)throws Exception;
	
}
